package com.minshenglife.zanzan.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.minshenglife.zanzan.dao.UserDao;
import com.minshenglife.zanzan.dao.WorkConMarketPowerDao;
import com.minshenglife.zanzan.dao.WorkConPowerDao;
import com.minshenglife.zanzan.entity.User;
import com.minshenglife.zanzan.entity.WorkConMarketPower;
import com.minshenglife.zanzan.entity.WorkConPower;
import com.minshenglife.zanzan.service.WorkConMarketPowerService;
import com.minshenglife.zanzan.service.WorkConPowerService;

/**
 * 工作日志权限service
 * @author jianghaibo
 *
 */
@Component
@Transactional
public class WorkConMarketPowerServiceImpl implements WorkConMarketPowerService{
	Logger log = LoggerFactory.getLogger(WorkConMarketPowerServiceImpl.class);
	
	@Resource
	WorkConMarketPowerDao conMarketPowerDao;
	@Resource
	UserDao userDao;

	@Override
	public WorkConMarketPower findByExample(WorkConMarketPower conPower) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<WorkConMarketPower> findListByExample(
			WorkConMarketPower conPower) {
		return conMarketPowerDao.findByExample(conPower);
	}

	@Override
	public String findCanBeReviewUser() {
		String canBeReviewUser = "";
		List<WorkConMarketPower> conMarketPowers = conMarketPowerDao.findMaketUser();
		for (WorkConMarketPower workConMarketPower : conMarketPowers) {
			canBeReviewUser += workConMarketPower.getCanBeViewEmpId() + "|";
		}
		return canBeReviewUser;
	}
	
}
